package com.scau.dto;


import com.scau.pojo.OrderItem;

//订单封装对象  订单记录和商品
public class Order {

    private OrderItem orderItem;
    private double price;

    public OrderItem getOrderItem() {
        return orderItem;
    }

    public void setOrderItem(OrderItem orderItem) {
        this.orderItem = orderItem;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    public Order() {
    }

    public Order(OrderItem orderItem, double price) {
        this.orderItem = orderItem;
        this.price = price;
    }

    @Override
    public String toString() {
        return "Order{" +
                "orderItem=" + orderItem +
                ", price=" + price +
                '}';
    }
}
